<?php
         global $Room;
         $id=$data2['room'];

        if($Room[$id]['time6']==0){
            cleardjs($Room[$id]['djs'],$id);
            return false;
          }
         cleardjs($Room[$id]['djs'],$id);
         $Room[$id]['time6']=0;
         $Room[$id]['xx']['zt']=5;

         //翻牌时间
         $time_interval = 15;
         
         $Room[$id]['time7']=time()+$time_interval;
         djs($time_interval,'setfanpai',$id);



        foreach ($Room[$id]['user'] as $connection3) {
            if($connection3->user['zt']=='1'){
                 $Room[$id]['user'][$connection3->user['id']]->user['tpzt']='-1';
            }
            if($connection3->user['online']!='-1'){
                act('djs',$Room[$id]['time7'],$connection3);
                $msg=array();
                $msg['id']='divRobBankerText';
                $msg['html']='<p class="liurenniuniu-ziti">等待摊牌</p>';
                act('html',$msg,$connection3);
                if($connection3->user['zt']=='1'){
                $msg=array();
                $msg['id']='operationButton';
                $msg['html']='<div class="gongg" style="display: block;">点击牌面翻牌</div>';
                act('html',$msg,$connection3);
                act('fapaistart','',$connection3);
                }
            }
        }